package com.base.kongjian.entity;

/**
 * 财富记录,用户财富的转换（5次评论-一朵鲜花） （5个点赞-一朵鲜花），（5次转发-一颗爱心），（10次收藏-一颗钻石）
 * @author chendonglin
 *
 */
public class WealthRec
{
	private long id;			//PK
		
	private int workKind;		//作品种类1-微博,2-视频,3-音乐,4-帖子,5-照片	
	
	private long workId; 		//比如微博ID,音乐ID,视频ID..
	
	private long hisRec;		//历史记录
	
	private long newRec;		//新记录
	
	private int type; 			//1-转发 ,2-收藏,3-点赞,4评论

	public long getId()
	{
		return id;
	}

	public void setId(long id)
	{
		this.id = id;
	}

	public int getWorkKind()
	{
		return workKind;
	}

	public void setWorkKind(int workKind)
	{
		this.workKind = workKind;
	}

	public long getWorkId()
	{
		return workId;
	}

	public void setWorkId(long workId)
	{
		this.workId = workId;
	}

	public synchronized long getHisRec()
	{
		return hisRec;
	}

	public void setHisRec(long hisRec)
	{
		this.hisRec = hisRec;
	}

	public synchronized long getNewRec()
	{
		return newRec;
	}

	public void setNewRec(long newRec)
	{
		this.newRec = newRec;
	}

	public int getType()
	{
		return type;
	}

	public void setType(int type)
	{
		this.type = type;
	}

	public WealthRec(long id, int workKind, long workId, long hisRec,
			long newRec, int type)
	{
		super ();
		this.id = id;
		this.workKind = workKind;
		this.workId = workId;
		this.hisRec = hisRec;
		this.newRec = newRec;
		this.type = type;
	}

	public WealthRec()
	{
		super ();
	}

}
